package com.sinosoft.tcmemr.control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sinosoft.framework.core.common.utils.ajax.ResponseData;
import com.sinosoft.tcmemr.entity.PatientCaseEntity;

@Controller
@RequestMapping("pcase")
public class PatientCaseController {
	
	
	@RequestMapping(value = "/pcaseList", method = RequestMethod.GET)
	public String pCaseList() {
		///System.out.println("#method:"+ RequestMethod.GET);patientCaseWrite.jsp
		return "tcmemr/pcaseList";
	}
	
	@RequestMapping(value = "/pcaseContent", method = RequestMethod.GET)
	public String pcaseContent() {
		///System.out.println("#method:"+ RequestMethod.GET);patientCaseWrite.jsp
		return "tcmemr/pcaseContent";
	}
	
	@RequestMapping(value = "/create")
	@ResponseBody
	public ResponseData pcaseCreate(@RequestBody PatientCaseEntity pcasedata) {
		
		System.out.println("#pcasedata:"+ pcasedata.getWeight());
		
		return new ResponseData(true,null);
		///return "tcmemr/pcaseContent";
	}
}
